{% extends 'SeowebBundle::layout.html.twig' %}

{% block title %}Sitios{% endblock title %}
{% block headline %}Sitios{% endblock headline %}


{% block content_row %}
    
        <div class="row-fluid">
            <div class="span12">
                <table class="table table-striped">
                <tr>

                    <th>{{ paginas.sortable('Pagina', 'p.nombre')|raw }}</th>
                    <th>{{ paginas.sortable('Url', 'p.url')|raw }}</th>
                    <th></th>

                </tr>

                {% for pagina in paginas %}
                <tr {% if loop.index is odd %}class="color"{% endif %}>

                    <td>{{ pagina.nombre }}</td>
                    <td>{{ pagina.url }}</td>
                    <td><a href="{{ path('click_megusta', {'id': pagina.id}) }}" >Click</a></td>        
                </tr>
                {% endfor %}
                </table>
                {# display navigation #}
                <div class="navigation">
                    {{ paginas.render()|raw }}
                </div>
                

            </div>

        </div>
  

{% endblock content_row %}